import http from '../../utils/http'
const BASE_URL = 'http://192.168.221.237:8006'

//获取用户标签的初始化数据
const getUserLable = (obj) => http({
    url: `${BASE_URL}/service_user/label/findAllLabel`,
    method: 'post',
    data: { ...obj }
})

//单个标条件查看数据
const getLable = (labelId) => http({
    url: `${BASE_URL}/service_user/label/findLabelDetails`,
    method: "get",
    params: { labelId }
})

//删除用户标签
const delUserLable = (labelId) => http({
    url: `${BASE_URL}/service_user/label/deleteLabel`,
    method: "post",
    params: { labelId }
})

//新增用户标签
const addUserLable = (obj) => http({
    url: `${BASE_URL}/service_user/label/insertLabel`,
    method: "post",
    data: { ...obj }
})

//编辑用户标签
const editUserLable = (obj) => http({
    url: `${BASE_URL}/service_user/label/updateLabel`,
    method: "post",
    data: { ...obj }
})

export { getUserLable, getLable, delUserLable, addUserLable, editUserLable }